package ws.entity;

import lombok.Data;

import java.util.Date;

/**
 * @Author gjh
 * @Date 2025/9/18
 * @Description:
 */
@Data
public class ChatInfo {
    private String username;
    private String content;
    private Date createTime = new Date();


    public ChatInfo( String username) {
        this.username = username;
    }

    public ChatInfo(String username, String content) {
        this.username = username;
        this.content = content;
        this.createTime = new Date();
    }
}
